Mac 初期設定
macの初期設定メモ
Xcode Command Line Toolsインストール
xcode-select --install
setup GitHub ssh
ssh-keygen -t ed25519
GitHub にSSH鍵を登録
add standard shell
sudo vim /etc/shells
add /usr/local/bin/zsh, /opt/homebrew/bin/zsh
https://github.com/ebkn/dotfiles から設定ファイルを読み込んで実行
curl -s https://raw.githubusercontent.com/ebkn/dotfiles/main/bin/init/macos.sh | zsh
shell, terminal 等各種ツールのインストール、設定
アプリのインストール
終わったらWezterm, zshの起動確認
Google Driveに置いているフォントのインストールが必要
AppleID
login
System Preferences
TouchID
Register multiple fingers
Security & Privacy
Use Apple Watch to unlock
Require password immediately
On Firewall
General
Dark mode
Accent color
sidebar icon size
Default browser -> Brave
Display
Scaled resolution
Always Night Shift
Desktop & screen saver
background
Screen saver
Siri
off
hide on menu bar
Bluetooth
show on menu bar
Sound
show on menu bar
turn off startup/user interface sound
Keyboard
set keyrepeat, delay until repeat to max
Modifier Keys
map Caps Lock to Control
Shortcut
off
map Move left/right a space Ctrl+h to Ctrl+l
map Mission ControltoCtrl+u
Trackpad
enable Tap to Click
fastest Tracking speed
disable dictionary
Mission Control
turn off Automatically rearrange Spaces based on most recent use
Do not disturb
turn off sync across devices
Dock & Menu Bar -> Clock
Use 24-hour clock
Display the time with seconds
Notifications
remove widgets
Finder
show extensions
show home
change side bar
Dock
delete unnecessary apps
show on right
hide automatically
change size, magnificatio
Accesibility
display -> reduce motion
Google Drive
Install Fonts
1Password
Alfred
Google Driveから設定ファイルの同期が完了し次第、Alfred 側で同期フォルダの設定
Alfred Workflow Config
GitHub設定
GitHub gpg signing 設定
生体認証登録
Vim
:call dein#install()
ブラウザ (Brave, Chrome) 設定
Useful Chrome Extensions
Android Studio セットアップ
Flutter の環境構築をした
VSCode セットアップ
Zoom
zsh history
copy ~/.zsh_history
Apple Silicon mac
google-japanese-ime が apple silicon 未対応 (2022/07) 使わなくなった
brew でいれられないので、公式サイトからダウンロードして Rosetta で動かすように
homebrew でいれたツールのインストール先が /usr/local/bin -> /opt/homebrew/bin に変わった
zsh のパスを変えた
/usr/local/bin/zsh -> /opt/homebrew/bin/zsh
fzf のパスを変えた
set rtp+=/opt/homebrew/opt/fzf
prefix 部分の出し分けはbrew --prefix で
coc.nvim
cd ~/.config/coc/extensions && npm i
Flutter
code:sh
sudo softwareupdate --install-rosetta --agree-to-license
flutter clean
rm ios/Pods
rm ios/.symlinks
sudo gem uninstall ffi
arch -x86_64 sudo gem install ffi
sudo gem install cocoapods -v 1.11.3
flutter pub get
pod cache clean --all
cd ios && arch -x86_64 pod install --repo-update
flutter run ....
https://github.com/flutter/flutter/wiki/Developing-with-Flutter-on-Apple-Silicon
https://zenn.dev/hndr/articles/14689ec937af1f#cocoapodsのinstall
ref
https://zenn.dev/suzuki_hoge/books/2021-12-m1-docker-5ac3fe0b1c05de
https://github.com/flutter/flutter/issues/97566